リフレクションはうまくできなかったので、先にデータ型について学習。公式見るのがしんどくなったので、他の人を参考にさせてもらいました。 Pythonらしいコードの書き方 – Kesin’s diary それで、出来上がったのがコレ。エラー時の挙動とか書かないとサンプルにもなんないなぁ。
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed